package com.example.sunran.service;

import org.apache.commons.net.ftp.FTPFile;

import java.io.File;
import java.io.InputStream;
import java.util.List;

public interface FTPService {

    boolean initFtp(String hostname, String user, String pwd, int port);


    int uploadFile(String pathname, String fileName,File originFile);


    boolean createFolder(String parentPathh,String folderName);


    void downloadFile(String pathname, String filename, String localpath);


    List<File> getLocalFile(String filePath);

    List<String> getFtpFile();

}
